﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="SupplierAdd.aspx.cs" Inherits="SupplierAdd" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">

<body>
   <table cellspacing="2" cellpadding ="2" style="height:100%" class="GridItem" >
        <br />
        <tr>
            <td><strong> Add new supplier </strong> </td>  
        </tr>
       <tr>
         <td style="height: 28px"><asp:Label ID="Label8" runat="server" Text="Company name:  "></asp:Label></td>
         <td style="height: 28px">
             
         <asp:TextBox  ID="txtCompanyName" runat="server"   >
         </asp:TextBox>
         </td>
      </tr>
      <tr>
         <td style="height: 28px"><asp:Label ID="Label1" runat="server" Text="Category  "></asp:Label></td>
         <td style="height: 28px">
          <asp:DropDownList ID="dlCategory" runat="server"  Width="146px" 
                 AppendDataBoundItems="True" DataSourceID="dsCategory" 
                 DataTextField="CategoryName" DataValueField="CategoryId" >
              <asp:ListItem Value="-1">--- Choose Category ---</asp:ListItem>
    
         </asp:DropDownList>
             
             <asp:ObjectDataSource ID="dsCategory" runat="server" SelectMethod="GetCategory" 
                 TypeName="Service.ReferenceData.ReferenceDataServiceSupplier">
             </asp:ObjectDataSource>
             <br />
              <asp:Label ID="lblRequireCategory" runat="server" Text="Value require !" 
               Visible ="False" BorderColor="Red" ForeColor="#FF0066" ></asp:Label>
         </td>
      </tr>
      
       <tr>
         <td style="height: 28px"><asp:Label ID="Label5" runat="server" Text="Vat  "></asp:Label></td>
         <td style="height: 28px"> 
         <asp:TextBox  ID="txtVat" runat="server"   >
         </asp:TextBox>
         <br />
         <asp:Label ID="lblRequireVat" runat="server" Text="Value require Float!" 
               Visible ="False" BorderColor="Red" ForeColor="#FF0066" ></asp:Label>
   
         </td>
      </tr>
      
     <tr>
         <td style="height: 28px"><asp:Label ID="Label2" runat="server" Text="Fax  "></asp:Label></td>
         <td style="height: 28px"> 
         <asp:TextBox  ID="txtFax" runat="server"   >
         </asp:TextBox>
         </td>
      </tr>
      
       <tr>
         <td style="height: 28px"><asp:Label ID="Label3" runat="server" Text="Phone  "></asp:Label></td>
         <td style="height: 28px"> 
         <asp:TextBox  ID="txtPhone" runat="server"   >
         </asp:TextBox>
         </td>
      </tr>
      
      <tr>
         <td style="height: 28px"><asp:Label ID="Label4" runat="server" Text="Email  "></asp:Label></td>
         <td style="height: 28px"> 
         <asp:TextBox  ID="txtEmail" runat="server"   >
         </asp:TextBox>
         </td>
      </tr>
      
      <tr>
          <td></td>
          <td style="text-align:right"> <asp:Button CssClass="btnexpress" 
                  BorderStyle="Dotted" ID="bntValidate" 
                     runat="server" Text="Validate" onclick="bntValidate_Click" />
           <asp:Button CssClass="btnexpress" BorderStyle="Dotted" ID="bntCancel" 
                     runat="server" Text="New" onclick="bntNew_Click" />&nbsp;&nbsp;<asp:Label ID="lblPermission" runat="server" CssClass="permissionstyle"></asp:Label>
          
  </td>
      </tr>  
  </table>
</body>

</asp:Content>

